//
//  DiceModel.h
//
//  Created by Hjelm Daniel on 8/3/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>

@interface DiceModel : NSObject {
	GLfloat x_rotation; // OpenGL rotation factor of the object
	GLfloat y_rotation; // OpenGL rotation factor of the object
	GLfloat z_rotation; // OpenGL rotation factor of the object
	GLfloat rotspeed; // control rotation speed of the object
	BOOL rotstop; // stop self rotation
	BOOL touchInside; // finger tap inside of the object ?
	CGPoint startTouchPosition; // Start Touch Position
	GLint index;
}

@property GLfloat x_rotation;
@property GLfloat y_rotation;
@property GLfloat z_rotation;
@property GLfloat rotspeed;
@property BOOL rotstop;
@property BOOL touchInside;
@property CGPoint startTouchPosition;

-(void)drawModel;
-(void)setTexture:(GLint)newIndex;

@end
